package com.qingkai.onlineshop.di

import com.qingkai.onlineshop.data.AppDatabase
import com.qingkai.onlineshop.presentation.dashboard.DashboardViewModel
import com.qingkai.onlineshop.presentation.detail.DetailViewModel
import com.qingkai.onlineshop.presentation.product.ProductViewModel
import org.koin.core.module.dsl.viewModelOf
import org.koin.dsl.module

/**
 *作者：created by 89270 on 2025/6/3 18:07
 *描述：
 */
val appModule = module {

    single { AppDatabase.getInstance(get()) }

    viewModelOf(::DashboardViewModel)
    viewModelOf(::ProductViewModel)
    viewModelOf(::DetailViewModel)
}